package com.yungu.swift.admin.consts;

/**
 * @author : cuixiuyin
 * @date : 2019/6/13
 */
public enum GatewayErrorEnum {

    /**
     * 网关错误码信息返回
     */
    LOGIN_TOKEN_INVALID(2099, "accessToken 失效"),
    LOGIN_TOKEN_LACK(2098, "accessToken 参数缺失"),
    LOGIN_SIGN_FAILED(2097, "验签失败"),
    LOGIN_SIGN_LACK(2096, "sign 参数缺失"),
    NOT_SUPPORT_METHOD(2095, "不支持的请求方式"),
    ;

    private Integer code;
    private String msg;

    GatewayErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
